//package com.example.vae.Dao;
//
//import android.app.Application;
//
//import androidx.annotation.NonNull;
//import androidx.lifecycle.AndroidViewModel;
//import androidx.lifecycle.LiveData;
//
//import com.example.myapplication.Dao.PersonReposity;
//import com.example.myapplication.pojo.Person;
//
//import java.util.List;
//
//public class MainViewModel extends AndroidViewModel {
//
//    private LiveData<List<Person>> listLiveData;
//    private PersonReposity personReposity;
//    public MainViewModel(@NonNull Application application) {
//        super(application);
//        personReposity=new PersonReposity(application);
//    }
//
//    public LiveData<List<Person>> getListLiveData() {
//        return personReposity.getListLiveData();
//    }
//
//    public void InsertPerson(Person... people) {
//        personReposity.InsertPerson(people);
//    }
//}
//
//
